if (($#pjlcommands > -1) && (defined($dat->{'pjl'}))) {
#if (($#pjlcommands > -1)) {
my @pjltmp;
push(@pjltmp,
"PJL arguments are not put into the command line, they must be put into a PJL header which is prepended to the actual job data which is generated by the command line shown above and sent to the printer. After the job data one can reset the printer via PJL. So a complete job looks as follows:<BLOCKQUOTE>",
"<I><ESC></I>",
# The "JOB" PJL command is not supported by all printers
"<TT>%-12345X\@PJL</TT><BR>");
#"<TT>%-12345X\@PJL JOB NAME=\"</TT>",
#"<I><A job name></I>",
#"<TT>\"</TT><BR>");
for my $command (@pjlcommands) {
push(@pjltmp,
"<TT>$command</TT><BR>");
}
push(@pjltmp,
"<I><The job data></I><BR>",
"<I><ESC></I>",
# The "JOB" PJL command is not supported by all printers
"<TT>%-12345X\@PJL RESET</TT></BLOCKQUOTE><P>",
#"<TT>%-12345X\@PJL EOJ</TT></BLOCKQUOTE><P>",
"<I><ESC></I>",
": This is the ",
"<I>ESC</I>",
" character, ASCII code 27.<P>",
#"<I><A job name></I>",
#": The job name can be chosen arbitrarily, some printers show it on their front panel displays.<P>",
"It is not required to give the PJL arguments, you can leave out some of them or you can even send only the job data without PJL header and PJL end-of-job mark.<P>");
push(@docs, "<B>PJL</B><P>");
push(@docs, @pjltmp);
} elsif ((defined($dat->{'drivernopjl'})) &&
($dat->{'drivernopjl'} == 1) &&
(defined($dat->{'pjl'}))) {
my @pjltmp;
push(@pjltmp,
"This driver produces a PJL header with PJL commands internally and it is incompatible with extra PJL options merged into that header. Therefore there are no PJL options available when using this driver.<P>");
push(@docs, "<B>PJL</B><P>");
push(@docs, @pjltmp);
}
push(@docs, "<B>Options</B><P>");
push(@docs, @doctmp);
return @docs;
}
# Get a shorter summary documentation thing.
sub get_summarydocs {
my ($this) = $_[0];
my $dat = $this->{'dat'};
my @docs;
for my $arg (@{$dat->{'args'}}) {
# Make sure that the longname/translation exists
if (!$arg->{'comment'}) {
$arg->{'comment'} = longname($arg->{'name'});
}
my ($name,
$required,
$type,
$comment,
$spot,
$default) = ($arg->{'name'},
$arg->{'required'},
$arg->{'type'},
$arg->{'comment'},
$arg->{'spot'},
$arg->{'default'});
my $reqstr = ($required ? " required" : "n optional");